var hasAppendPageObj = false;
function forwardPage(currentPageNumber,pageSize){
	useSearchFormForPage(currentPageNumber,pageSize);
}

function useSearchFormForPage(currentPageNumber,pageSize){
	var searchFormObj = $("#searchForm");
	if(hasAppendPageObj){
		$("#currentPageNumber").val(currentPageNumber);
		$("#pageSize").val(pageSize);
	}else{
		searchFormObj.append(getHiddenObj("currentPageNumber","currentPageNumber",currentPageNumber));
		searchFormObj.append(getHiddenObj("pageSize","pageSize",pageSize));
		hasAppendPageObj = true;
	}	
	searchFormObj.submit();
}

function getHiddenObj(objId,objName,objValue){
	return jQuery("<input type=\"hidden\" id=\""+objId+"\" name=\""+objName+"\" value=\""+objValue+"\" />");
}
